package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-17
 */
@TableName("sys_user")
public class SysAppUser extends Model<SysAppUser> {

    private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 登录账号
     */
    @ApiModelProperty(example="13800000000",value = "用户名")
    private String username;

    /**
     * 加密盐值
     */
    private String salt;

    /**
     * 登录密码密文
     */
    @ApiModelProperty(example="123",value = "密码（会进行加盐加密（不可逆）")
    private String password;

    /**
     * 手机号码
     */
    @ApiModelProperty(example="13800000000",value = "手机号")
    private String phone;

    /**
     * 部门ID
     */
    private String deptId;

    /**
     * 真实名称
     */
    private String realName;

    /**
     * 用户昵称
     */
    @ApiModelProperty(example="遥远的她",value = "用户昵称")
    private String nickName;

    /**
     * 邮箱(唯一)
     */
    private String email;

    /**
     * 账户状态(1.正常 2.锁定 )
     */
    private Integer status;

    /**
     * 性别(1：男；2：女；)
     */
    private Integer sex;

    /**
     * 是否删除(1未删除；0已删除)
     */
    private Integer deleted;

    /**
     * 创建人
     */
    private String createId;

    /**
     * 更新人
     */
    private String updateId;

    /**
     * 创建来源(1.web;2.android;3.ios;)
     */
    @TableField("create_where")
    @ApiModelProperty(example="1",value = "创建来源(1.web;2.android;3.ios;)")
    private Integer createWhere;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 积分
     */
    private Integer point;

    /**
     * 月薪
     */
    private BigDecimal monthSalary;

    /**
     * 职位
     */
    private String position;

    /**
     * 语种
     */
    @ApiModelProperty(example="1",value = "语种ID")
    private Integer language;




    /**
     * 学习等级
     */
    @TableField("stuLevel")
    @ApiModelProperty(example="1",value = "等级ID")
    private Integer stuLevel;


    /**
     * 上次登陆时间
     */
    private LocalDateTime lastLoginDate;





    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public Integer getCreateWhere() {
        return createWhere;
    }

    public void setCreateWhere(Integer createWhere) {
        this.createWhere = createWhere;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public BigDecimal getMonthSalary() {
        return monthSalary;
    }

    public void setMonthSalary(BigDecimal monthSalary) {
        this.monthSalary = monthSalary;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getLanguage() {
        return language;
    }

    public void setLanguage(Integer language) {
        this.language = language;
    }

    public Integer getStuLevel() {
        return stuLevel;
    }

    public void setStuLevel(Integer stuLevel) {
        this.stuLevel = stuLevel;
    }

    public LocalDateTime getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(LocalDateTime lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }




    @Override
    public String toString() {
        return "SysAppUser{" +
        "id=" + id +
        ", username=" + username +
        ", salt=" + salt +
        ", password=" + password +
        ", phone=" + phone +
        ", deptId=" + deptId +
        ", realName=" + realName +
        ", nickName=" + nickName +
        ", email=" + email +
        ", status=" + status +
        ", sex=" + sex +
        ", deleted=" + deleted +
        ", createId=" + createId +
        ", updateId=" + updateId +
        ", createWhere=" + createWhere +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", point=" + point +
        ", monthSalary=" + monthSalary +
        ", position=" + position +
        "}";
    }
}
